package com.guoguo.mapper;

import com.guoguo.base.PageBean;
import com.guoguo.entity.Groups;
import com.guoguo.entity.vo.GroupVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GroupsMapper {

    List<GroupVO> selectgroupList();

    List<GroupVO> selectBySortDesc(@Param("groupName") String groupName, @Param("isShow") Integer isShow);


    List<GroupVO> selectBySortAsc(@Param("groupName") String groupName, @Param("isShow") Integer isShow);

    List<GroupVO> selectByCreateTimeAsc(@Param("groupName") String groupName, @Param("isShow") Integer isShow);

    List<GroupVO> selectByCreateTimeDesc(@Param("groupName") String groupName, @Param("isShow") Integer isShow);

    int deleteByPrimaryKey(String groupId);

    int insert(Groups record);

    int insertSelective(Groups groups);

    int updateByPrimaryKeySelective(Groups groups);

    Groups selectByPrimaryKey(String groupId);

    List<Groups> selectAll();

    int updateByPrimaryKey(Groups record);
}